﻿using System;


namespace ServicesDirectory.UserControl
{
    public partial class MessageBox : System.Web.UI.UserControl
    {
        public event EventHandler Yes;
        public event EventHandler No;
        protected void Page_Load(object sender, EventArgs e)
        {
            btnNo.Click += btnNo_Click;
            btnYes.Click += btnYes_Click;
        }

        void btnYes_Click(object sender, EventArgs e)
        {
            if (Yes != null)
                Yes(sender, e);
        }

        void btnNo_Click(object sender, EventArgs e)
        {
            if (No != null)
                No(sender, e);
        }
        public void SetTitle(string message)
        {
            lblMessage.Text = message;
        }
    }
}